home *** CD-ROM | disk | FTP | other *** search
- /* jonix.h
- */
-
- #define MAX_LINE 8192
- #define setparam(A,B,C) if (paramexist (#A, #B, argc, argv) == 1) options.C = paramv (#A, #B, argc, argv)
-
- typedef struct
- {
- int width;
- int distance; // 0 means any distance is counted as wrap
- int rowlength; // consecutive length of non-alphanumeric characters
- int newline; // newline character
- int remove; // remove empty rows
- } jonix_options;
-
- int main (int argc, char *argv[]);
- char *jonix (FILE *fin, FILE *fout, jonix_options *options);
- void syntax (char *message);
- int paramv (char *longs, char *shorts, int argc, char *argv[]);
- char *paramt (char *longs, char *shorts, int argc, char *argv[]);
- int paramexist (char *longs, char *shorts, int argc, char *argv[]);
- int nonalphas (char *text);
- int alphas (char *text);
- void redirect (char *file);
-